home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
328_01
/
wflush.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
357b
|
30 lines
/* wflush ()
*
* this routine flushes the keyboard/mouse
*/
#include "wsys.h"
void wflush (void)
{
if (wpipein)
{
/* redirection is in effect - don't flush
*/
return;
}
while ( wready_kbd() )
{
wread_kbd();
}
wmouse_location();
wmouse.wms_used = wmouse.wms_internal= 0;
return; /*wflush*/
}